<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>signup</title>
    <link rel="stylesheet" href="css/index.css">
        <script type="text/javascript" language="JavaScript">
        function customer_register(){

            //--------------------------action--------------//
            document.form_register.action= "register";
            document.form_register.submit();
        }

        function boss_register(){

            //--------------------------action--------------//
            document.form_register.action= "../boss/bossregister";

            document.form_register.submit();
        }
    </script>
</head>
<body class="body">
<div class="content2">
    <div class="content-form">
        <h1 class="content-title">网站注册</h1>
        <div class="content3">
 			 <form name="form_register" method="post">
                <div style="text-align: left;position: relative;margin-left: 20px">
                    手机号：<input class="password"  type="number" name="tel" placeholder="请输入手机号">
                </div>
                <div id="change_margin_1" style="text-align: left;position: relative;margin-left: 20px">
                    用户名：<input class="user"  type="text" name="name" placeholder="请输入用户名">
                </div>
                <div style="text-align: left;position: relative;margin-left: 20px">
                    性&nbsp;别：&nbsp;&nbsp;&nbsp;<input type="radio" name="sex"  value="男">男&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="sex"  value="女">女&nbsp;&nbsp;&nbsp;&nbsp;
                </div>
                <div style="text-align: left;position: relative;margin-left: 20px">
                    地&nbsp;址：<input class="password"  type="text" name = "address" placeholder="请输入您的地址">
                </div>
				<div id="change_margin_2" style="text-align: left;position: relative;margin-left: 20px">
                    密&nbsp;码：<input class="password"  type="password" name="password" placeholder="请输入密码" >
                </div>
                <div id="change_margin_3" style="text-align: left;position: relative;margin-left: 20px">
                    密&nbsp;码：<input class="password"  type="password" name="password_again" placeholder="请再次输入密码" >
                </div>

                <p id="error_box"></p>
                <div id="change_margin_4">
                   <input class="content-form-signup" type="submit" value="创建账户"  onclick="customer_register()">
                    <br><br>
                    <input class="content-form-signup" type="submit" value="创建商家"  onclick="boss_register()">
                </div>
            </form>
        </div>
        <div><a class="content-login-link" href="login.html">登录</a></div>
    </div>

</div>
</body>
</html>